/*
Copyright 2010,2011 Matt Van Der Westhuizen

This file is part of CGLL.

CGLL is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

CGLL is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with CGLL.  If not, see <http://www.gnu.org/licenses/>.
*/

package org.chaoticengine.cgll.entity.component;

import org.chaoticengine.cgll.entity.Entity;

/**
 * Base component for handling collisions. An entity can have multiple different
 * collision handlers - they will all be called by the ComponentManager when
 * there is a collision.
 * 
 * @author Matt v.d. Westhuizen
 */
public abstract class CollisionComponent extends Component implements ICollisionComponent {

    @Override
    public void onSetOwner() {
        return;
    }

    /**
     * Handles a collision with entity e.
     * 
     * @param e The entity with which this entity has collided.
     */
    public abstract void handleCollision(Entity e);
}
